package cn.edu.scau.cmi.dengzejun.chapter11;

import javax.swing.*;
import java.awt.*;

public class Example11_4 extends JFrame{
	JTabbedPane p;
	public Example11_4() {
		this.setBounds(100,100,500,300);
		this.setVisible(true);
		this.p = new JTabbedPane(JTabbedPane.LEFT);
		this.p.add("watch FlowLayou",new FlowLayoutJPanel());
		this.p.add("watch GridLayout", new GridLayoutJPanel());
		this.p.add("watch BorderLayout",new BorderLayoutJPanel());
		this.p.validate();
		this.add(p);
		this.validate();
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		return;
	}
	public static void main(String args[]) {
		new Example11_4();
		return;
	}
}
